import http from "@/utils/http";
import {LoginFormType} from '@/types/login'
export const getValidateApi=()=>{
    return http.get({
        url:'/api/admin/validate/code/get'
    })
}

export const getIndexPcApi=()=>{
    return http.get({
        url:'/api/admin/getLoginPic'
    })
}

export const loginApi=(data:LoginFormType)=>{
    return http.post({
        url:'/api/admin/login',
        data
    })
}

export const getAdminInfoByToken=()=>{
    return http.get({
        url:'/api/admin/getAdminInfoByToken'
    })
}

export const getAuthMenusApi=()=>{
    return http.get({
        url:'/api/admin/getMenus'
    })
}

